<?php
/**
 * Class App_User_Profile
 *
 * since 4.2.0
 */
class App_Index extends My_Application {

    public function run() {
        $banners = [
            [
                'url' => 'http://www.baidu.com',
                'image' => 'http://img.117go.com/static/assets/imgs/20150330_4.jpg',
            ]
        ];

        $article = new Vo_Article_Simple();
        $article->User = new Vo_User_Simple();
        $article->Poi = new Vo_Poi_Simple();

        $articles = [$article, $article, $article, $article, $article];

        $list = new Vo_Basic_List();
        $list->hasMore = true;
        $list->list = $articles;
        $list->start = '5';


        return [
            'banners' => $banners,
            'articles' => $list,
        ];

    }

    public function paramRules() {
        return array(
        );
    }
}
